< previous page page_541 next page >

Page 541
Creating a Data Link
Click the third icon from the left to add a new data link to your Visual Basic environment. Once you create a new data link, that link will be around whenever you open the Data View window in Visual Basic. The Data View window keeps any links you create between projectsits not limited to one project like the data environment is.
EXERCISE
Add a New Data Link
1. Open the Data View window.
2. Click the Add a New Data Link icon or right-click the Data Links folder and select the Add a New Data Link menu item.
analysis.gifOnce you have a data link, you can use this to view many of the objects in your SQL Server or Oracle database.

When youre using a Jet MDB, you wont be able to add, edit, or delete any of the objects within that database. Figure 27.9 shows you what a connection to a Jet MDB looks like. This limitation might be removed in the future, but for now, you just cant perform these operations. Youll only be allowed to modify objects if youre connected to Microsoft SQL Server or to an Oracle database.
8160-0541a.gif
Figure 27.9
The Data View window with a connection to a Jet MDB.
Using the Data Link with a Jet MDB
Once youve opened a connection to a Jet MDB, you can now open a list of tables. Click the plus sign (+) next to the Tables folder. This expands the folder into a list of tables in the database. If you double-click one of these tables, the Data View window will open a data sheet for you from which you can view, add, edit, and delete data in this table.

 
< previous page page_541 next page >

If you like this book, buy it!